package com.ruoyi.teacher.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.eduadmin.api.domain.TEmploymentTrace;
import com.ruoyi.eduadmin.api.domain.TTeachTrace;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 老师日报对象 t_newspaper
 * 
 * @author ruoyi
 * @date 2022-12-24
 */
public class TNewspaper extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 教师名字 */
    @Excel(name = "教师名字")
    private String teacherName;

    /** 日报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Excel(name = "日报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paperTime;

    /** 备注 */
    @Excel(name = "备注")
    private String intro;

    // 教学追踪表
    private List<TTeachTrace> eduadminForm;

    // 就业追踪表
    private List<TEmploymentTrace> employmentForm;

    private Long teacherId;

    private String campus;

    private String subject;

    private String type;


    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTeacherName(String teacherName) 
    {
        this.teacherName = teacherName;
    }

    public String getTeacherName() 
    {
        return teacherName;
    }
    public void setPaperTime(Date paperTime) 
    {
        this.paperTime = paperTime;
    }

    public Date getPaperTime() 
    {
        return paperTime;
    }
    public void setIntro(String intro) 
    {
        this.intro = intro;
    }

    public String getIntro()
    {
        return intro;
    }

    public List<TTeachTrace> getEduadminForm() {
        return eduadminForm;
    }

    public void setEduadminForm(List<TTeachTrace> eduadminForm) {
        this.eduadminForm = eduadminForm;
    }

    public List<TEmploymentTrace> getEmploymentForm() {
        return employmentForm;
    }

    public void setEmploymentForm(List<TEmploymentTrace> employmentForm) {
        this.employmentForm = employmentForm;
    }

    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }

    public String getCampus() {
        return campus;
    }

    public void setCampus(String campus) {
        this.campus = campus;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teacherName", getTeacherName())
            .append("paperTime", getPaperTime())
            .append("intro", getIntro())
            .append("createTime", getCreateTime())
            .append("eduadminForm", getEduadminForm())
            .append("employmentForm", getEmploymentForm())
            .append("teacherId", getTeacherId())
            .append("campus", getTeacherId())
            .append("subject", getTeacherId())
            .append("type", getTeacherId())
            .toString();
    }
}
